This commit is contained in:
Adithya 2023-04-04 09:04:29 +05:30
parent 8e9c58d8de
commit fcd2882239
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
10 changed files with 23 additions and 35 deletions

View file

@ -31,7 +31,7 @@
};
};
outputs = { self, nixpkgs, home-manager, hyprland, impermanence, lanzaboote, nixvim, }@inputs:
outputs = { self, nixpkgs, home-manager, hyprland, impermanence, lanzaboote, nixvim }@inputs:
let
system = "x86_64-linux";
lib = nixpkgs.lib;

View file

@ -4,8 +4,6 @@
, ...
}: {
imports = [
./filesystem.nix
./gnome-keyring.nix
./gtk.nix
./hardware.nix
./packages.nix
@ -13,7 +11,6 @@
./plymouth.nix
./secureboot.nix
./services.nix
./swaylock.nix
./virtualisation.nix
];

View file

@ -1,15 +0,0 @@
{ ... }: {
boot = {
resumeDevice = "/dev/vg0/swap";
initrd.luks.devices = {
luks0 = {
allowDiscards = true;
bypassWorkqueues = true;
device = "/dev/disk/by-partlabel/CRYPT";
preLVM = true;
};
};
};
swapDevices = [{ device = "/dev/vg0/swap"; }];
}

View file

@ -1,6 +0,0 @@
{ ... }: {
programs.seahorse.enable = true;
services.gnome.gnome-keyring.enable = true;
security.pam.services.passwd.enableGnomeKeyring = true;
security.pam.services.login.enableGnomeKeyring = true;
}

View file

@ -1,3 +1,7 @@
{ ... }: {
programs.dconf.enable = true;
programs.seahorse.enable = true;
services.gnome.gnome-keyring.enable = true;
security.pam.services.passwd.enableGnomeKeyring = true;
security.pam.services.login.enableGnomeKeyring = true;
}

View file

@ -3,9 +3,21 @@
, config
, ...
}: {
imports = [ ./disk.nix ./kernel.nix ];
imports = [ ./kernel.nix ./filesystem.nix ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot = {
resumeDevice = "/dev/vg0/swap";
initrd.luks.devices = {
luks0 = {
allowDiscards = true;
bypassWorkqueues = true;
device = "/dev/disk/by-partlabel/CRYPT";
preLVM = true;
};
};
};
swapDevices = [{ device = "/dev/vg0/swap"; }];
hardware.opengl = {
enable = true;

View file

@ -1,4 +1,4 @@
{ ... }: {
{ lib, ... }: {
nix.settings = {
substituters = [
"https://nix-community.cachix.org/"
@ -10,4 +10,5 @@
experimental-features = [ "nix-command" "flakes" ];
};
nixpkgs.config.allowUnfree = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -31,4 +31,5 @@
zsh.enable = true;
};
environment.pathsToLink = [ "/share/zsh" ];
security.pam.services.swaylock = { };
}

View file

@ -1,7 +1,4 @@
{ lib
, pkgs
, ...
}: {
{ lib, pkgs, ... }: {
boot.bootspec.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {

View file

@ -1,3 +0,0 @@
{ ... }: {
security.pam.services.swaylock = { };
}