trying flakes
This commit is contained in:
1 parent
0c9abbd660
commit
55f747bed5
4 files changed
+103
-1
No files matched your search
@@ -0,0 +1,82 @@
|
||||
{
|
||||
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11;
|
||||
inputs.home-manager.url = github:nix-community/home-manager;
|
||||
inputs.fh.url = "https://flakehub.com/f/DeterminateSystems/fh/*.tar.gz";
|
||||
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
|
||||
|
||||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, home-manager
|
||||
, fh
|
||||
, nixos-hardware
|
||||
}@attrs:
|
||||
let
|
||||
user = {
|
||||
name = "ari";
|
||||
fullName = "Ari Sosnovsky";
|
||||
email = "ariel@sosnovsky.ca";
|
||||
};
|
||||
dataDir = "/mnt/Data";
|
||||
systemStateVersion = "23.11";
|
||||
homeMangerVersion = "23.11";
|
||||
hostName = "fwbook";
|
||||
in
|
||||
{
|
||||
nixosConfigurations.fwbook = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hardware-configs/fwbook.nix
|
||||
nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
(import ./modules/os/nix.nix {
|
||||
systemStateVersion = systemStateVersion;
|
||||
})
|
||||
(import ./modules/os/core.nix {
|
||||
user = user;
|
||||
hostName = hostName;
|
||||
firewall = { enable = true; };
|
||||
})
|
||||
(import ./modules/os/hardware.nix {
|
||||
enableFingerPrint = true;
|
||||
})
|
||||
(import ./modules/os/ssh.nix {
|
||||
user = user;
|
||||
enableSSHServer = false;
|
||||
})
|
||||
./modules/os/services.nix
|
||||
./modules/docker/core.nix
|
||||
(import ./modules/user.nix {
|
||||
user = user;
|
||||
})
|
||||
(import ./modules/rootUser.nix {
|
||||
hostName = hostName;
|
||||
})
|
||||
home-manager.nixosModules.default
|
||||
fh.packages.x86_64-linux.default
|
||||
(import ./modules/optional/home-manager-config.nix {
|
||||
homeMangerVersion = homeMangerVersion;
|
||||
hostName = hostName;
|
||||
user = user;
|
||||
})
|
||||
./modules/optional/amd-packages.nix
|
||||
./modules/optional/gnome.nix
|
||||
(import ./modules/optional/hyprland.nix {
|
||||
user = user;
|
||||
})
|
||||
{
|
||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||
services.fwupd.enable = true;
|
||||
fileSystems."${dataDir}" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"users"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
nixosConfigurations.fwbook = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hardware-configs/fwbook.nix
|
||||
./hosts/fwbook.nix
|
||||
(import ./main.nix {
|
||||
enableFingerPrint = true;
|
||||
hostName = "fwbook";
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,20 @@
|
||||
{ user
|
||||
, dataDir ? "/mnt/Data"
|
||||
}:
|
||||
{ ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./fwbook.hardware-configuration.nix
|
||||
];
|
||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||
services.fwupd.enable = true;
|
||||
fileSystems."${dataDir}" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"users"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user