Compare commits
No commits in common. "f86275f33165c0e5997ba2bbae03756f5403196f" and "7d6dd5e9e4a6cbcb7a3c928efbdd68aec40f3c25" have entirely different histories.
f86275f331
...
7d6dd5e9e4
9 changed files with 9 additions and 89 deletions
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
config.flake.factory.user = username: {
|
||||
nixos."${username}" = {pkgs, ...}: {
|
||||
users.users."${username}" = {
|
||||
isNormalUser = true;
|
||||
name = "${username}";
|
||||
};
|
||||
extraGroups = ["wheel"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/firefox&helix.nix
Normal file
9
modules/firefox&helix.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{inputs, ...}: {
|
||||
flake.nixosModules.firefoxHelix = {pkgs, ...}: {
|
||||
programs.firefox.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
flake.modules.nixos.desktop = {
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_6_12;
|
||||
kernelParams = ["nvidia-drm.modeset=1"];
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/disk/by-id/ata-KINGSTON_SKC300S37A60G_50026B7239039148";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{inputs, ...}: {flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "desktop";}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{config, ...}: {
|
||||
flake.modules.nixos.desktop = {
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
open = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{self, ...}: {
|
||||
flake.modules.nixos.desktop = {
|
||||
imports = [
|
||||
self.factory.benDesktop
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
{lib, ...}: {
|
||||
options.flake.factory = lib.mkOption {
|
||||
type = lib.types.attrsof lib.types.unspecified;
|
||||
default = {};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.flake.lib = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.unspecified;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.flake.lib = {
|
||||
mkNixos = system: name: {
|
||||
${name} = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
inputs.self.modules.nixos.${name}
|
||||
{nixpkgs.hostPlatform = lib.mkDefault system;}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
flake.modules = lib.mkMerge [
|
||||
(self.factory.user "benDesktop")
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue