Compare commits
3 commits
75c91e50c1
...
a9da0426fb
| Author | SHA1 | Date | |
|---|---|---|---|
| a9da0426fb | |||
| dc3725a83d | |||
| c615a6b4e7 |
12 changed files with 171 additions and 31 deletions
55
flake.lock
generated
55
flake.lock
generated
|
|
@ -81,6 +81,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"distro-grub-themes": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1734806114,
|
||||||
|
"narHash": "sha256-FWkDtoLMTTk2Lz4d4LkFjtV/xYyIlpwZlX5Np1QhXls=",
|
||||||
|
"owner": "AdisonCavani",
|
||||||
|
"repo": "distro-grub-themes",
|
||||||
|
"rev": "ebbd17419890059e371a6f2dbf2a7e76190327d4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AdisonCavani",
|
||||||
|
"repo": "distro-grub-themes",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"emacs": {
|
"emacs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -134,6 +155,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"gitignore": {
|
"gitignore": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -457,6 +496,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
|
"distro-grub-themes": "distro-grub-themes",
|
||||||
"emacs": "emacs",
|
"emacs": "emacs",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-on-droid": "nix-on-droid",
|
"nix-on-droid": "nix-on-droid",
|
||||||
|
|
@ -536,6 +576,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659877975,
|
"lastModified": 1659877975,
|
||||||
|
|
|
||||||
34
flake.nix
34
flake.nix
|
|
@ -4,6 +4,11 @@
|
||||||
stable.url = "github:NixOS/nixpkgs/nixos-24.11";
|
stable.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
nixpkgs-droid.url = "github:NixOS/nixpkgs/nixos-24.05";
|
nixpkgs-droid.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||||
|
|
||||||
|
distro-grub-themes = {
|
||||||
|
url = "github:AdisonCavani/distro-grub-themes";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
|
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
|
||||||
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
|
@ -75,10 +80,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
inherit system;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
(
|
(
|
||||||
|
|
@ -105,10 +111,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."dregil" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."dregil" = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
inherit system;
|
||||||
stable = import inputs.stable { system = "x86_64-linux"; };
|
stable = import inputs.stable { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
modules = [ ./hosts/dregil ];
|
modules = [ ./hosts/dregil ];
|
||||||
|
|
@ -125,7 +132,7 @@
|
||||||
nixOnDroidConfigurations.default =
|
nixOnDroidConfigurations.default =
|
||||||
with inputs;
|
with inputs;
|
||||||
nix-on-droid.lib.nixOnDroidConfiguration {
|
nix-on-droid.lib.nixOnDroidConfiguration {
|
||||||
pkgs = import nixpkgs-droid {};
|
pkgs = import nixpkgs-droid { };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/redmi
|
./hosts/redmi
|
||||||
{ nix.registry.nixpkgs.flake = nixpkgs-droid; }
|
{ nix.registry.nixpkgs.flake = nixpkgs-droid; }
|
||||||
|
|
@ -138,29 +145,12 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in
|
in
|
||||||
pkgs.haskellPackages.shellFor {
|
pkgs.mkShell {
|
||||||
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
||||||
|
|
||||||
packages = p: [
|
packages = with pkgs; [
|
||||||
p.xmonad
|
|
||||||
p.xmonad-contrib
|
|
||||||
];
|
|
||||||
|
|
||||||
withHoogle = true;
|
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
haskellPackages.haskell-language-server
|
|
||||||
haskellPackages.fourmolu
|
|
||||||
haskellPackages.hspec-discover
|
|
||||||
haskellPackages.doctest
|
|
||||||
haskellPackages.xmonad
|
|
||||||
haskellPackages.xmonad-contrib
|
|
||||||
cabal-install
|
|
||||||
ghcid
|
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
nil
|
nil
|
||||||
hpack
|
|
||||||
hlint
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
./cli.nix
|
./cli.nix
|
||||||
./programs/rofi
|
./programs/rofi
|
||||||
./programs/xmonad
|
./programs/xmonad
|
||||||
|
#./programs/i3
|
||||||
./programs/jitsi-meet
|
./programs/jitsi-meet
|
||||||
./programs/simplex-chat
|
./programs/simplex-chat
|
||||||
./programs/zathura
|
./programs/zathura
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
./services/polybar
|
./services/polybar
|
||||||
./services/dunst
|
./services/dunst
|
||||||
./services/udiskie
|
./services/udiskie
|
||||||
./services/picom
|
# ./services/picom
|
||||||
./services/screen-locker
|
./services/screen-locker
|
||||||
./services/blueman-applet
|
./services/blueman-applet
|
||||||
./services/network-manager
|
./services/network-manager
|
||||||
|
|
@ -49,9 +50,10 @@
|
||||||
uhk-agent # my keyboard
|
uhk-agent # my keyboard
|
||||||
mosh # ssh via udp
|
mosh # ssh via udp
|
||||||
rclone
|
rclone
|
||||||
|
parallel-disk-usage
|
||||||
|
gdu
|
||||||
|
|
||||||
# gaming support
|
# gaming support
|
||||||
lutris
|
|
||||||
stable.bottles
|
stable.bottles
|
||||||
wine64Packages.stagingFull
|
wine64Packages.stagingFull
|
||||||
scummvm
|
scummvm
|
||||||
|
|
@ -67,7 +69,6 @@
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
# autorandr.enable = true;
|
|
||||||
|
|
||||||
browserpass = {
|
browserpass = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -111,7 +112,5 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.autorandr = { enable = true; };
|
|
||||||
|
|
||||||
xsession.enable = true;
|
xsession.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@
|
||||||
|
|
||||||
(setq! undo-limit 80000000 ; Raise undo-limit to 80Mb
|
(setq! undo-limit 80000000 ; Raise undo-limit to 80Mb
|
||||||
auto-save-default t ; Nobody likes to loose work, I certainly don't
|
auto-save-default t ; Nobody likes to loose work, I certainly don't
|
||||||
|
switch-to-buffer-in-dedicated-window 'pop
|
||||||
|
switch-to-buffer-obey-display-actions t
|
||||||
)
|
)
|
||||||
|
|
||||||
;; tweak some VI defaults
|
;; tweak some VI defaults
|
||||||
|
|
|
||||||
15
home/alex/programs/i3/default.nix
Normal file
15
home/alex/programs/i3/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config.xsession.windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
modifier = "Mod4";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
config.services.screen-locker = {
|
config.services.screen-locker = {
|
||||||
enable = true;
|
enable = false;
|
||||||
inactiveInterval = 30;
|
inactiveInterval = 30;
|
||||||
lockCmd = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
lockCmd = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
||||||
xautolock.extraOptions = [ "-detectsleep" ];
|
xautolock.extraOptions = [ "-detectsleep" ];
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
inputs,
|
||||||
stable,
|
stable,
|
||||||
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
@ -24,9 +22,13 @@
|
||||||
../../modules/common-system.nix
|
../../modules/common-system.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
inputs.distro-grub-themes.nixosModules.${system}.default
|
||||||
../../home/anne/default.nix
|
../../home/anne/default.nix
|
||||||
../../home/alex/default.nix
|
../../home/alex/default.nix
|
||||||
|
../../modules/grub-themes
|
||||||
|
../../modules/hyprland
|
||||||
../../modules/podman
|
../../modules/podman
|
||||||
../../modules/tailscale
|
../../modules/tailscale
|
||||||
|
../../modules/flatpak.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
modules/flatpak.nix
Normal file
18
modules/flatpak.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
systemd.services.flatpak-repo = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.flatpak ];
|
||||||
|
script = ''
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/grub-themes/default.nix
Normal file
7
modules/grub-themes/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
config.distro-grub-themes = {
|
||||||
|
enable = true;
|
||||||
|
theme = "nixos";
|
||||||
|
};
|
||||||
|
}
|
||||||
10
modules/hyprland/default.nix
Normal file
10
modules/hyprland/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config.programs.hyprland.enable = true;
|
||||||
|
config.environment.systemPackages = [ pkgs.kitty ];
|
||||||
|
config.environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
}
|
||||||
18
modules/wm/greetd.nix
Normal file
18
modules/wm/greetd.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||||
|
user = "greeter";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
24
modules/wm/sway.nix
Normal file
24
modules/wm/sway.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
grim # screenshot functionality
|
||||||
|
slurp # screenshot functionality
|
||||||
|
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
|
||||||
|
mako # notification system developed by swaywm maintainer
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable the gnome-keyring secrets vault.
|
||||||
|
# Will be exposed through DBus to programs willing to store secrets.
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
# enable Sway window manager
|
||||||
|
programs.sway = {
|
||||||
|
enable = true;
|
||||||
|
wrapperFeatures.gtk = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue