niri änderungen

This commit is contained in:
peter
2026-07-26 22:03:51 +02:00
parent 87549d314f
commit bbd2bf8125
6 changed files with 96 additions and 40 deletions

24
flake.lock generated
View File

@@ -52,22 +52,34 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1784796856,
"narHash": "sha256-vwxWgF+Gj276WznzGb1LxGsK/39HaQwgQXiU3EkC844=",
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1040357.e2587caef70c/nixexprs.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
"noctalia": { "noctalia": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1784987374, "lastModified": 1785057679,
"narHash": "sha256-RfO7GURPZZr30LSRrNJAr7ruyLK11rHnWMntENSKT34=", "narHash": "sha256-7s3NWitLRzpkhWmTjzSvUMI975WTpLV5olfpIeyHTzo=",
"owner": "noctalia-dev", "owner": "noctalia-dev",
"repo": "noctalia", "repo": "noctalia",
"rev": "9de30388c0df8bc1e8db7405331a3598fc3a8015", "rev": "2b4764f0709d962c0e123b85977005a187f5d8fa",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "noctalia-dev", "owner": "noctalia-dev",
"ref": "cachix",
"repo": "noctalia", "repo": "noctalia",
"type": "github" "type": "github"
} }

View File

@@ -1,11 +1,16 @@
{ {
description = "Noctalica test"; description = "Noctalica test";
nixConfig = {
extra-substituters = [ "https://noctalia.cachix.org" ];
extra-trusted-public-keys = [ "noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4=" ];
};
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
noctalia = { noctalia = {
url = "github:noctalia-dev/noctalia"; url = "github:noctalia-dev/noctalia/cachix";
inputs.nixpkgs.follows = "nixpkgs"; # inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
@@ -20,6 +25,7 @@
outputs = { self, nixpkgs, noctalia, home-manager, lazyvim, ...}@inputs: { outputs = { self, nixpkgs, noctalia, home-manager, lazyvim, ...}@inputs: {
nixosConfigurations.vm = nixpkgs.lib.nixosSystem { nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ modules = [
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
@@ -32,8 +38,9 @@
home-manager.users.peter = import ./modules/home.nix; home-manager.users.peter = import ./modules/home.nix;
} }
./modules/configuration.nix
./modules/niri.nix
./modules/configuration.nix
]; ];
}; };
}; };

View File

@@ -2,11 +2,15 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, home-manager, ... }: {
config,
pkgs,
...
}:
{ {
imports = imports = [
[ # Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@@ -59,8 +63,11 @@
users.users."peter" = { users.users."peter" = {
isNormalUser = true; isNormalUser = true;
description = "peter"; description = "peter";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [
packages = with pkgs; []; "networkmanager"
"wheel"
];
packages = with pkgs; [ ];
}; };
programs.niri.enable = true; programs.niri.enable = true;
@@ -85,13 +92,16 @@
xdg.portal.enable = true; xdg.portal.enable = true;
home-manager.users.peter = { pkgs, ... }: { home-manager.users.peter = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ]; home.packages = [
pkgs.atool
pkgs.httpie
];
programs.bash.enable = true; programs.bash.enable = true;
programs.alacritty.enable = true; # Super+T in the default setting (terminal) programs.alacritty.enable = true; # Super+T in the default setting (terminal)
programs.fuzzel.enable = true; # Super+D in the default setting (app launcher) programs.fuzzel.enable = true; # Super+D in the default setting (app launcher)
programs.swaylock.enable = true; # Super+Alt+L in the default setting (screen locker) programs.swaylock.enable = true; # Super+Alt+L in the default setting (screen locker)
programs.waybar.enable = true; # launch on startup in the default setting (bar) # programs.waybar.enable = true; # launch on startup in the default setting (bar)
services.mako.enable = true; # notification daemon services.mako.enable = true; # notification daemon
services.swayidle.enable = true; # idle management daemon services.swayidle.enable = true; # idle management daemon
@@ -99,7 +109,7 @@
home.stateVersion = "26.05"; # Please read the comment before changing. home.stateVersion = "26.05"; # Please read the comment before changing.
}; };
systemd.user.services.niri.enableDefaultPath = false; systemd.user.services.niri.enableDefaultPath = false;
@@ -114,6 +124,21 @@
neovim neovim
xwayland-satellite xwayland-satellite
git git
ghostty
python3
fd
gcc
ripgrep
fzf
lazygit
unzip
wget
lua51Packages.luarocks
luaPackages.tree-sitter-cli
nodejs
rustup
nixfmt
statix
]; ];
programs.xwayland.enable = true; programs.xwayland.enable = true;
@@ -144,5 +169,8 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "26.05"; # Did you read the comment? system.stateVersion = "26.05"; # Did you read the comment?
nix.settings.experimental-features = [ "nix-command" "flakes"]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
} }

View File

@@ -15,7 +15,7 @@ in {
]; ];
# Beispiel: GitKonfiguration # Beispiel: GitKonfiguration
programs.git.settings.user = { programs.git.settings.peter = {
enable = true; enable = true;
userName = "peter"; userName = "peter";
userEmail = "peter@email"; userEmail = "peter@email";

View File

@@ -1,6 +1,15 @@
{ inputs, config, pkgs, ... }: { inputs, pkgs, ... }:
{ {
environmen.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
inputs.noctalia.packages.${pkgs.stdenc.hostPlatform.system}.default inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default
]; ];
imports = [
inputs.noctalia.nixosModules.default
];
programs.noctalia = {
enable = true;
systemd.enable = true;
};
} }

0
modules/noctalia.nix Normal file
View File