niri änderungen
This commit is contained in:
24
flake.lock
generated
24
flake.lock
generated
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
23
flake.nix
23
flake.nix
@@ -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,20 +25,22 @@
|
|||||||
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 {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,13 +2,17 @@
|
|||||||
# 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
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
@@ -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,21 +92,24 @@
|
|||||||
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 = [
|
||||||
programs.bash.enable = true;
|
pkgs.atool
|
||||||
|
pkgs.httpie
|
||||||
|
];
|
||||||
|
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
|
||||||
services.polkit-gnome.enable = true; # polkit
|
services.polkit-gnome.enable = true; # polkit
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
@@ -109,11 +119,26 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
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"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Beispiel: Git‑Konfiguration
|
# Beispiel: Git‑Konfiguration
|
||||||
programs.git.settings.user = {
|
programs.git.settings.peter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "peter";
|
userName = "peter";
|
||||||
userEmail = "peter@email";
|
userEmail = "peter@email";
|
||||||
|
|||||||
@@ -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
0
modules/noctalia.nix
Normal file
Reference in New Issue
Block a user