restructure flake (#14)

* initial commit

* simplify output structure

* don't pull wallpaper from flake, use fetchGit

* swap nixvim for neovim

* fetch wallpaper correctly

* move nixvim to aly home config
This commit is contained in:
Aly Raffauf 2024-07-09 19:17:53 -04:00 committed by GitHub
parent 17c234ac67
commit 945fbdcc39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 157 additions and 165 deletions

View file

@ -1,4 +1,4 @@
inputs: { self: {
config, config,
lib, lib,
pkgs, pkgs,

View file

@ -508,7 +508,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgsUnstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1720418205, "lastModified": 1720418205,
"narHash": "sha256-cPJoFPXU44GlhWg4pUk9oUPqurPlCFZ11ZQPk21GTPU=", "narHash": "sha256-cPJoFPXU44GlhWg4pUk9oUPqurPlCFZ11ZQPk21GTPU=",
@ -612,11 +612,10 @@
"iio-hyprland": "iio-hyprland", "iio-hyprland": "iio-hyprland",
"nixhw": "nixhw", "nixhw": "nixhw",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgsUnstable": "nixpkgsUnstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"nur": "nur", "nur": "nur",
"raffauflabs": "raffauflabs", "raffauflabs": "raffauflabs"
"wallpapers": "wallpapers"
} }
}, },
"systems": { "systems": {
@ -700,26 +699,6 @@
"type": "github" "type": "github"
} }
}, },
"wallpapers": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1720441472,
"narHash": "sha256-DmNtKWSUUZMMx/iVG+uBaDVZVYtTuqBDLlXuszkyU98=",
"owner": "alyraffauf",
"repo": "wallpapers",
"rev": "450b10fe4c206fe28a5e9dcc9e00d4f6e518815b",
"type": "github"
},
"original": {
"owner": "alyraffauf",
"repo": "wallpapers",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",

132
flake.nix
View file

@ -3,35 +3,57 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgsUnstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
agenix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:ryantm/agenix";
};
disko = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/disko";
};
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager/release-24.05";
};
agenix.url = "github:ryantm/agenix";
disko.url = "github:nix-community/disko";
home-manager.url = "github:nix-community/home-manager/release-24.05";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
iio-hyprland.url = "github:JeanSchoeller/iio-hyprland";
nixhw.url = "github:alyraffauf/nixhw";
nixvim.url = "github:nix-community/nixvim/nixos-24.05";
nur.url = "github:nix-community/NUR";
raffauflabs.url = "github:alyraffauf/raffauflabs";
wallpapers.url = "github:alyraffauf/wallpapers";
agenix.inputs.nixpkgs.follows = "nixpkgs"; iio-hyprland = {
disko.inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; url = "github:JeanSchoeller/iio-hyprland";
iio-hyprland.inputs.nixpkgs.follows = "nixpkgs"; };
nixhw.inputs.nixpkgs.follows = "nixpkgs";
nixvim.inputs.nixpkgs.follows = "nixpkgs"; nixhw = {
raffauflabs.inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
wallpapers.inputs.nixpkgs.follows = "nixpkgs"; url = "github:alyraffauf/nixhw";
};
nixvim = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/nixvim/nixos-24.05";
};
nur.url = "github:nix-community/NUR";
raffauflabs = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:alyraffauf/raffauflabs";
};
}; };
nixConfig = { nixConfig = {
accept-flake-config = true;
extra-substituters = [ extra-substituters = [
"https://alyraffauf.cachix.org" "https://alyraffauf.cachix.org"
"https://hyprland.cachix.org" "https://hyprland.cachix.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];
extra-trusted-public-keys = [ extra-trusted-public-keys = [
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM=" "alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
@ -39,20 +61,20 @@
]; ];
}; };
outputs = inputs @ {self, ...}: let outputs = {self, ...}: let
forDefaultSystems = inputs.nixpkgs.lib.genAttrs [ forDefaultSystems = self.inputs.nixpkgs.lib.genAttrs [
"aarch64-linux" "aarch64-linux"
"x86_64-linux" "x86_64-linux"
"aarch64-darwin" "aarch64-darwin"
"x86_64-darwin" "x86_64-darwin"
]; ];
forLinuxSystems = inputs.nixpkgs.lib.genAttrs [ forLinuxSystems = self.inputs.nixpkgs.lib.genAttrs [
"aarch64-linux" "aarch64-linux"
"x86_64-linux" "x86_64-linux"
]; ];
forAllHosts = inputs.nixpkgs.lib.genAttrs [ forAllHosts = self.inputs.nixpkgs.lib.genAttrs [
"fallarbor" "fallarbor"
"lavaridge" "lavaridge"
"mandarin" "mandarin"
@ -61,74 +83,44 @@
"rustboro" "rustboro"
]; ];
in { in {
formatter = forDefaultSystems (system: inputs.nixpkgs.legacyPackages.${system}.alejandra); formatter = forDefaultSystems (system: self.inputs.nixpkgs.legacyPackages.${system}.alejandra);
packages = forLinuxSystems (system: { packages = forLinuxSystems (system: {
default = inputs.nixpkgs.legacyPackages."${system}".writeShellScriptBin "clean-install" '' default = self.inputs.nixpkgs.legacyPackages."${system}".writeShellApplication {
# Check if an argument is provided name = "clean-install";
if [ $# -eq 0 ]; then text = ./flake/clean-install.sh;
echo "Error: Please provide a valid hostname as an argument." };
exit 1
fi
HOST=$1
FLAKE=github:alyraffauf/nixcfg#$HOST
echo "Warning: Running this script will wipe the currently installed system."
read -p "Do you want to continue? (y/n): " answer
if [ "$answer" != "y" ]; then
echo "Aborted."
exit 0
fi
sudo nix --experimental-features "nix-command flakes" run \
github:nix-community/disko -- --mode disko --flake $FLAKE
# Install NixOS with the updated flake input and root settings
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE
'';
}); });
homeManagerModules = { homeManagerModules = {
default = import ./homeManagerModules inputs self; default = import ./homeManagerModules self;
aly = import ./homes/aly inputs self; aly = import ./homes/aly self;
dustin = import ./homes/dustin inputs self; dustin = import ./homes/dustin self;
morgan = import ./homes/morgan inputs self; morgan = import ./homes/morgan self;
}; };
nixosModules = { nixosModules = {
base = import ./baseModules inputs; base = import ./baseModules self;
nixos = import ./nixosModules inputs; nixos = import ./nixosModules self;
users = import ./userModules inputs; users = import ./userModules self;
}; };
nixosConfigurations = forAllHosts ( nixosConfigurations = forAllHosts (
host: host:
inputs.nixpkgs.lib.nixosSystem { self.inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs self;}; specialArgs = {inherit self;};
modules = [ modules = [
./hosts/${host} ./hosts/${host}
inputs.agenix.nixosModules.default self.inputs.agenix.nixosModules.default
inputs.disko.nixosModules.disko self.inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.home-manager self.inputs.home-manager.nixosModules.home-manager
inputs.raffauflabs.nixosModules.raffauflabs
self.nixosModules.base self.nixosModules.base
self.nixosModules.nixos self.nixosModules.nixos
self.nixosModules.users self.nixosModules.users
{ {
home-manager = { home-manager = {
backupFileExtension = "backup"; backupFileExtension = "backup";
extraSpecialArgs = {inherit inputs self;}; extraSpecialArgs = {inherit self;};
sharedModules = [
inputs.agenix.homeManagerModules.default
inputs.nixvim.homeManagerModules.nixvim
inputs.nur.hmModules.nur
self.homeManagerModules.default
];
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
}; };

22
flake/clean-install.sh Executable file
View file

@ -0,0 +1,22 @@
# Check if an argument is provided
if [ $# -eq 0 ]; then
echo "Error: Please provide a valid hostname as an argument."
exit 1
fi
HOST=$1
FLAKE=github:alyraffauf/nixcfg#$HOST
echo "Warning: Running this script will wipe the currently installed system."
read -p "Do you want to continue? (y/n): " answer
if [ "$answer" != "y" ]; then
echo "Aborted."
exit 0
fi
sudo nix --experimental-features "nix-command flakes" run \
github:nix-community/disko -- --mode disko --flake $FLAKE
# Install NixOS with the updated flake input and root settings
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE

View file

@ -16,7 +16,6 @@
./librewolf ./librewolf
./mako ./mako
./nemo ./nemo
./neovim
./swaylock ./swaylock
./thunar ./thunar
./tmux ./tmux

View file

@ -1,21 +0,0 @@
{
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.ar.home.apps.neovim.enable {
programs.nixvim = {
enable = true;
colorschemes.ayu.enable = true;
plugins = {
lightline.enable = true;
markdown-preview.enable = true;
neo-tree.enable = true;
neogit.enable = true;
nix.enable = true;
};
};
};
}

View file

@ -1,4 +1,4 @@
inputs: self: { self: {
config, config,
pkgs, pkgs,
lib, lib,

View file

@ -48,6 +48,12 @@
) "file://${config.home.homeDirectory}/sync"; ) "file://${config.home.homeDirectory}/sync";
xdg = { xdg = {
dataFile."backgrounds".source = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "7603a8aa36b0d8d76bd9fd80d19e8b601e4839aa";
ref = "master";
};
userDirs = { userDirs = {
enable = true; enable = true;
createDirectories = true; createDirectories = true;

View file

@ -1,8 +1,8 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
config = let config = let
@ -45,7 +45,7 @@
pkgs.writers.writeRuby "hyprland-randomWallpaper" {} '' pkgs.writers.writeRuby "hyprland-randomWallpaper" {} ''
require 'fileutils' require 'fileutils'
directory = "${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds" directory = "${config.xdg.dataHome}/backgrounds/"
hyprctl = "${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"}" hyprctl = "${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"}"
old_pids = [] old_pids = []

View file

@ -1,15 +1,15 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: let }: let
sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" '' sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" ''
kill `pidof swaybg` kill `pidof swaybg`
OLD_PIDS=() OLD_PIDS=()
directory=${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds directory=${config.xdg.dataHome}/backgrounds
if [ -d "$directory" ]; then if [ -d "$directory" ]; then
while true; do while true; do

View file

@ -1,9 +1,9 @@
{ {
config, config,
inputs,
lib, lib,
osConfig, osConfig,
pkgs, pkgs,
self,
... ...
}: let }: let
cfg = config.ar.home; cfg = config.ar.home;
@ -102,7 +102,7 @@ in {
terminalEditor = lib.mkOption { terminalEditor = lib.mkOption {
description = "Default terminal editor package."; description = "Default terminal editor package.";
default = config.programs.nixvim.package; default = config.programs.neovim.package;
type = lib.types.package; type = lib.types.package;
}; };
@ -284,7 +284,7 @@ in {
wallpaper = lib.mkOption { wallpaper = lib.mkOption {
description = "Default wallpaper."; description = "Default wallpaper.";
default = "${inputs.wallpapers.packages.${pkgs.system}.defaults}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; default = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
type = lib.types.str; type = lib.types.str;
}; };
}; };

View file

@ -1,4 +1,4 @@
inputs: self: { self: {
config, config,
lib, lib,
pkgs, pkgs,
@ -8,6 +8,10 @@ inputs: self: {
./firefox ./firefox
./mail ./mail
./windowManagers ./windowManagers
self.homeManagerModules.default
self.inputs.agenix.homeManagerModules.default
self.inputs.nixvim.homeManagerModules.nixvim
self.inputs.nur.hmModules.nur
]; ];
home = { home = {
@ -36,14 +40,27 @@ inputs: self: {
}; };
programs = { programs = {
home-manager.enable = true;
git = { git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
userName = "Aly Raffauf"; userName = "Aly Raffauf";
userEmail = "aly@raffauflabs.com"; userEmail = "aly@raffauflabs.com";
}; };
home-manager.enable = true;
nixvim = {
enable = true;
colorschemes.ayu.enable = true;
plugins = {
lightline.enable = true;
markdown-preview.enable = true;
neo-tree.enable = true;
neogit.enable = true;
nix.enable = true;
};
};
}; };
systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets. systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets.
@ -66,7 +83,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds/wallhaven-3led2d.jpg"; wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-3led2d.jpg";
}; };
}; };
} }

View file

@ -1,9 +1,11 @@
inputs: self: { self: {
config, config,
lib, lib,
pkgs, pkgs,
... ...
}: { }: {
imports = [self.homeManagerModules.default];
home = { home = {
username = "dustin"; username = "dustin";
homeDirectory = "/home/dustin"; homeDirectory = "/home/dustin";
@ -41,7 +43,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; wallpaper = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
}; };
}; };
} }

View file

@ -1,9 +1,11 @@
inputs: self: { self: {
config, config,
lib, lib,
pkgs, pkgs,
... ...
}: { }: {
imports = [self.homeManagerModules.default];
home = { home = {
username = "morgan"; username = "morgan";
homeDirectory = "/home/morgan"; homeDirectory = "/home/morgan";
@ -38,7 +40,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share//backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; wallpaper = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
}; };
}; };
} }

View file

@ -1,8 +1,8 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
age.secrets = { age.secrets = {
@ -12,7 +12,7 @@
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
inputs.agenix.packages.${pkgs.system}.default self.inputs.agenix.packages.${pkgs.system}.default
inxi inxi
]; ];
@ -103,8 +103,8 @@
overlays = [ overlays = [
(final: prev: { (final: prev: {
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland; hyprland = self.inputs.hyprland.packages.${pkgs.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland; xdg-desktop-portal-hyprland = self.inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
}) })
]; ];
}; };

View file

@ -1,16 +1,16 @@
# Framework 13 with 11th gen Intel Core i5, 16GB RAM, 512GB SSD. # Framework 13 with 11th gen Intel Core i5, 16GB RAM, 512GB SSD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
imports = [ imports = [
../common.nix ../common.nix
./disko.nix ./disko.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.framework-13-intel-11th self.inputs.nixhw.nixosModules.framework-13-intel-11th
]; ];
age.secrets = { age.secrets = {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,7 +1,6 @@
# Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD. # Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self, self,
@ -11,7 +10,7 @@
../common.nix ../common.nix
./disko.nix ./disko.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.framework-13-amd-7000 self.inputs.nixhw.nixosModules.framework-13-amd-7000
]; ];
age.secrets = { age.secrets = {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,19 +1,19 @@
# Custom desktop with AMD Ryzen 5 5600x, 32GB RAM, AMD Rx 7800 XT, and 1TB SSD + 2TB SSD. # Custom desktop with AMD Ryzen 5 5600x, 32GB RAM, AMD Rx 7800 XT, and 1TB SSD + 2TB SSD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
imports = [ imports = [
../common.nix ../common.nix
./disko.nix ./disko.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.common-amd-cpu self.inputs.nixhw.nixosModules.common-amd-cpu
inputs.nixhw.nixosModules.common-amd-gpu self.inputs.nixhw.nixosModules.common-amd-gpu
inputs.nixhw.nixosModules.common-bluetooth self.inputs.nixhw.nixosModules.common-bluetooth
inputs.nixhw.nixosModules.common-ssd self.inputs.nixhw.nixosModules.common-ssd
]; ];
boot = { boot = {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,9 +1,9 @@
# Custom desktop with AMD Ryzen 5 2600, 16GB RAM, AMD Rx 6700, and 1TB SSD + 2TB HDD. # Custom desktop with AMD Ryzen 5 2600, 16GB RAM, AMD Rx 6700, and 1TB SSD + 2TB HDD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: let }: let
archiveDirectory = "/mnt/Archive"; archiveDirectory = "/mnt/Archive";
@ -14,10 +14,11 @@ in {
../common.nix ../common.nix
./filesystems.nix ./filesystems.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.common-amd-cpu self.inputs.nixhw.nixosModules.common-amd-cpu
inputs.nixhw.nixosModules.common-amd-gpu self.inputs.nixhw.nixosModules.common-amd-gpu
inputs.nixhw.nixosModules.common-bluetooth self.inputs.nixhw.nixosModules.common-bluetooth
inputs.nixhw.nixosModules.common-ssd self.inputs.nixhw.nixosModules.common-ssd
self.inputs.raffauflabs.nixosModules.raffauflabs
]; ];
age.secrets = { age.secrets = {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self, self,

View file

@ -1,16 +1,16 @@
# Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD. # Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
imports = [ imports = [
../common.nix ../common.nix
./disko.nix ./disko.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.lenovo-yoga-9i-intel-13th self.inputs.nixhw.nixosModules.lenovo-yoga-9i-intel-13th
]; ];
age.secrets = { age.secrets = {

View file

@ -1,8 +1,8 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self,
... ...
}: { }: {
home-manager = { home-manager = {
@ -10,10 +10,10 @@
{ {
wayland.windowManager.hyprland.extraConfig = '' wayland.windowManager.hyprland.extraConfig = ''
# Extra bindings for petalburg. # Extra bindings for petalburg.
bind = , xf86launch4, exec, ${lib.getExe inputs.nixhw.packages.${pkgs.system}.power-profile-adjuster} bind = , xf86launch4, exec, ${lib.getExe self.inputs.nixhw.packages.${pkgs.system}.power-profile-adjuster}
bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause bind = , xf86launch2, exec, ${lib.getExe pkgs.playerctl} play-pause
exec-once = ${lib.getExe inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152" exec-once = ${lib.getExe self.inputs.iio-hyprland.packages.${pkgs.system}.default} "desc:Samsung Display Corp. 0x4152"
''; '';
ar.home.desktop.hyprland.tabletMode.enable = true; ar.home.desktop.hyprland.tabletMode.enable = true;

View file

@ -1,7 +1,6 @@
# Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD. # Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD.
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
self, self,
@ -11,7 +10,7 @@
../common.nix ../common.nix
./disko.nix ./disko.nix
./home.nix ./home.nix
inputs.nixhw.nixosModules.thinkpad-t440p self.inputs.nixhw.nixosModules.thinkpad-t440p
]; ];
age.secrets = { age.secrets = {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,4 +1,4 @@
inputs: { self: {
config, config,
pkgs, pkgs,
lib, lib,

View file

@ -1,4 +1,4 @@
inputs: { self: {
config, config,
pkgs, pkgs,
lib, lib,