niri + noctalia
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
description = "Declarative NixOS desktop configuration";
|
description = "fe5hua's flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
@@ -10,14 +10,30 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
impermanence.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
impermanence.inputs.home-manager.follows = "home-manager";
|
||||||
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko/latest";
|
||||||
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
noctalia = {
|
||||||
|
url = "github:noctalia-dev/noctalia";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
niri-flake.url = "github:sodiboo/niri-flake";
|
||||||
|
|
||||||
|
noctalia-greeter = {
|
||||||
|
url = "github:noctalia-dev/noctalia-greeter";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
inputs@{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
impermanence,
|
impermanence,
|
||||||
@@ -29,17 +45,23 @@
|
|||||||
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
inputs.niri-flake.nixosModules.niri
|
||||||
|
inputs.noctalia.nixosModules.default
|
||||||
|
inputs.noctalia-greeter.nixosModules.default
|
||||||
|
|
||||||
./hosts/desktop
|
./hosts/desktop
|
||||||
./modules/base.nix
|
./modules/base.nix
|
||||||
./modules/boot.nix
|
./modules/boot.nix
|
||||||
./modules/ephemeral-root.nix
|
./modules/ephemeral-root.nix
|
||||||
./modules/impermanence.nix
|
|
||||||
./modules/persistence.nix
|
./modules/persistence.nix
|
||||||
./modules/secrets.nix
|
./modules/secrets.nix
|
||||||
./modules/desktop.nix
|
./modules/desktop.nix
|
||||||
|
|||||||
+54
-6
@@ -1,16 +1,64 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.stateVersion = "26.05";
|
imports = [
|
||||||
|
inputs.niri-flake.homeModules.niri
|
||||||
|
inputs.noctalia.homeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.niri = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
layout = {
|
||||||
|
gaps = 8;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.noctalia = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
shell.settings_show_advanced = true;
|
||||||
|
theme = {
|
||||||
|
mode = "dark";
|
||||||
|
source = "builtin";
|
||||||
|
builtin = "Catppuccin";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
userName = "fe5hua";
|
||||||
|
userEmail = "gitea@fe5hua.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.sessionVariables = {
|
||||||
age
|
# EDITOR = "vim";
|
||||||
sops
|
};
|
||||||
|
|
||||||
|
home.persistence."/persist" = {
|
||||||
|
directories = [
|
||||||
|
"nixos-config"
|
||||||
|
"Downloads"
|
||||||
|
"Music"
|
||||||
|
"Pictures"
|
||||||
|
"Documents"
|
||||||
|
"Videos"
|
||||||
|
"Projects"
|
||||||
|
# "VirtualBox VMs"
|
||||||
|
# { directory = ".gnupg"; mode = "0700"; }
|
||||||
|
# { directory = ".ssh"; mode = "0700"; }
|
||||||
|
# { directory = ".nixops"; mode = "0700"; }
|
||||||
|
# { directory = ".local/share/keyrings"; mode = "0700"; }
|
||||||
|
# ".local/share/direnv"
|
||||||
];
|
];
|
||||||
|
files = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "26.05";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ config, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -28,6 +28,10 @@
|
|||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
|
|
||||||
users.user = import ../../home/user.nix;
|
users.user = import ../../home/user.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,21 @@
|
|||||||
wget
|
wget
|
||||||
htop
|
htop
|
||||||
tree
|
tree
|
||||||
|
age
|
||||||
|
sops
|
||||||
|
ghostty
|
||||||
|
librewolf
|
||||||
|
nautilus
|
||||||
|
xdg-utils
|
||||||
|
xdg-user-dirs
|
||||||
|
wl-clipboard
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
playerctl
|
||||||
|
brightnessctl
|
||||||
|
file
|
||||||
|
unzip
|
||||||
|
zip
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
|
|||||||
+22
-2
@@ -1,7 +1,27 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.graphics = {
|
programs.niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
environment."NIXOS_OZONE_WL" = "1";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.noctalia = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = false;
|
||||||
|
recommendedServices.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.noctalia-greeter = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
session.default = "niri";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -7,12 +7,6 @@
|
|||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
|
|
||||||
directories = [
|
directories = [
|
||||||
{
|
|
||||||
directory = "/home/user/nixos-config";
|
|
||||||
user = "user";
|
|
||||||
group = "users";
|
|
||||||
}
|
|
||||||
|
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user