This commit is contained in:
willifan 2024-05-12 22:34:32 +02:00
parent 5a74c0f0c3
commit 91a90350a9
8 changed files with 49 additions and 24 deletions

View File

@ -4,12 +4,12 @@
inputs = {
# NixOS official package source, using the nixos-23.11 branch here
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hardware.url = "github:nixos/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs-unstable.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -28,25 +28,33 @@
};
outputs = { self, nixpkgs-unstable, home-manager, ... }@inputs: {
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
inherit (nixpkgs) lib;
configVars = import ./vars { inherit inputs lib; };
specialArgs = { inherit inputs outputs configVars nixpkgs; };
in
{
# Please replace my-nixos with your hostname
nixosConfigurations.Lenni = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
#home-manager.users.willifan = import ./users/willifan/home;
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
}
./hosts
./users/willifan
];
nixosConfigurations = {
Lenni = lib.nixosSystem {
inherit specialArgs;
modules = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
#home-manager.users.willifan = import ./users/willifan/home;
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
}
./hosts
./users/willifan
];
};
};
};
}

2
scripts/rebuild.sh Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash

2
scripts/update.sh Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash

View File

@ -6,7 +6,11 @@
grim
slurp
wl-clipboard
playerctl
kanshi
jq
bc
xorg.xrandr
@ -14,11 +18,13 @@
inotify-tools
papirus-icon-theme
eww
mako
polkit_gnome
dconf
python3
usbutils
unzip

View File

@ -161,7 +161,7 @@
''$mainMod, V, togglefloating, ''
''$mainMod, R, exec, wofi --show drun''
''$mainMod, J, togglesplit, # dwindle''
''$mainMod, P, exec, enpass''
''$mainMod, P, exec, Enpass''
''$mainMod, T, exec, hyprctl dispatch exec "[float; pin; size 40% 40%; move 100%-41% 40] kitty bpytop -b proc"''
''$mainMod, W, exec, networkmanager_dmenu''
''$mainMod, F, fullscreen''

View File

@ -4,7 +4,10 @@
fonts.fontconfig = {
enable = true;
defaultFonts = {
monospace = [ "jetbrains-mono" ];
monospace = [ "JetBrains Mono" ];
serif = [ "" ];
sansSerif = [ "" ];
emoji = [ "" ];
};
};
};

View File

@ -5,7 +5,7 @@
gtk = {
enable = true;
font = {
name = "jetbrains-mono";
name = "JetBrains Mono";
package = pkgs.jetbrains-mono;
};

4
vars/default.nix Normal file
View File

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
}