update
This commit is contained in:
1 parent
f55767ef6b
commit
38e15dc779
11 files changed
+56
-48
No files matched your search
@@ -1,26 +1,25 @@
|
|||||||
|
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
|
||||||
|
# Use `nix run .#write-flake` to regenerate it.
|
||||||
{
|
{
|
||||||
description = "A simple NixOS flake";
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||||
|
|
||||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
inputs = {
|
||||||
|
flake-file.url = "github:vic/flake-file";
|
||||||
inputs = {
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
# NixOS official package source, using the nixos-26.05 branch here
|
helium-browser = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
url = "github:schembriaiden/helium-browser-nix-flake";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
helium-browser = {
|
};
|
||||||
url = "github:schembriaiden/helium-browser-nix-flake";
|
home-manager = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
};
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
home-manager = {
|
};
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
import-tree.url = "github:vic/import-tree";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
};
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "github:nix-community/nixvim/nixos-26.05";
|
url = "github:nix-community/nixvim/nixos-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
};
|
||||||
flake-file.url = "github:vic/flake-file";
|
|
||||||
import-tree.url = "github:vic/import-tree";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ inputs, ... }: {
|
|
||||||
flake.modules.nixos.nixos-desktop = {
|
|
||||||
imports =
|
|
||||||
with inputs.self.modules.nixos;
|
|
||||||
with inputs.self.factory;
|
|
||||||
[
|
|
||||||
system-desktop
|
|
||||||
i18n-de
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
flake.modules.nixos.nixos-desktop = { config, ... } : {
|
flake.modules.nixos.nixos-desktop = {
|
||||||
imports = with inputs.self.modules.nixos; [
|
imports = with inputs.self.modules.nixos; [
|
||||||
snurm
|
snurm
|
||||||
|
steam
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.snurm = { config, ... }: {
|
home-manager.users.snurm = {
|
||||||
imports =
|
imports =
|
||||||
with inputs.self.modules.homeManager;
|
with inputs.self.modules.homeManager;
|
||||||
with inputs.self.factory;
|
with inputs.self.factory;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
verbose = true;
|
verbose = true;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -284,6 +284,8 @@ hl.bind(mainMod .. " + SHIFT + L", hl.dsp.window.move({ direction = "right" }))
|
|||||||
hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }))
|
hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }))
|
||||||
hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }))
|
hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }))
|
||||||
|
|
||||||
|
-- fullscreen
|
||||||
|
hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
|
||||||
-- Switch workspaces with mainMod + [0-9]
|
-- Switch workspaces with mainMod + [0-9]
|
||||||
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
|
|||||||
@@ -3,9 +3,15 @@
|
|||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
|
#maybe remove
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
inputs.self.modules.homeManager.hyprland
|
inputs.self.modules.homeManager.hyprland
|
||||||
];
|
];
|
||||||
|
imports =
|
||||||
|
with inputs.self.modules.nixos;
|
||||||
|
[
|
||||||
|
screenshot
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.hyprland = { pkgs, ... }: {
|
flake.modules.homeManager.hyprland = { pkgs, ... }: {
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.screenshot = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
slurp
|
||||||
|
grim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.steam = { pkgs, ... }: {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
extraCompatPackages = [
|
||||||
|
pkgs.proton-ge-bin
|
||||||
|
];
|
||||||
|
protontricks = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,9 +7,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.zsh = { pkgs, ... }: {
|
flake.modules.homeManager.zsh = { pkgs, ... }: {
|
||||||
imports = with inputs.self.modules.homeManager; [
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
flake-file.inputs = {
|
flake-file.inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.nixos.system-base = { pkgs, ... }: {
|
flake.modules.nixos.system-base = { pkgs, ... }: {
|
||||||
|
|||||||
@@ -11,13 +11,6 @@
|
|||||||
(self.factory.user "snurm" true)
|
(self.factory.user "snurm" true)
|
||||||
{
|
{
|
||||||
nixos.snurm = {
|
nixos.snurm = {
|
||||||
imports =
|
|
||||||
with self.modules.nixos;
|
|
||||||
with self.factory;
|
|
||||||
[
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.snurm.extraGroups = [
|
users.users.snurm.extraGroups = [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user