1773267079

This commit is contained in:
2026-03-11 16:11:19 -06:00
parent 14c39cd025
commit 0bd86a067f
7 changed files with 47 additions and 32 deletions
+4 -2
View File
@@ -15,8 +15,10 @@
./modules/home.nix ./modules/home.nix
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
# xdg.portal.config.common.default = [ "cosmic" ]; "nix-command"
"flakes"
];
system.stateVersion = "25.11"; system.stateVersion = "25.11";
} }
+24 -18
View File
@@ -9,16 +9,16 @@
url = "github:nix-community/home-manager/release-25.11"; url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
cosmic-manager = {
url = "github:HeitorAugustoLN/cosmic-manager";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
}; };
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs: outputs =
{
self,
nixpkgs,
nixpkgs-unstable,
home-manager,
...
}@inputs:
let let
settings = import ./settings.nix; settings = import ./settings.nix;
system = "x86_64-linux"; system = "x86_64-linux";
@@ -28,15 +28,21 @@
config.allowUnfree = true; config.allowUnfree = true;
}; };
}; };
in { in
nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem { {
inherit system; nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; inherit system;
modules = [ specialArgs = { inherit inputs; };
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; }) modules = [
./configuration.nix (
home-manager.nixosModules.home-manager { ... }:
]; {
nixpkgs.overlays = [ overlay-unstable ];
}
)
./configuration.nix
home-manager.nixosModules.home-manager
];
};
}; };
};
} }
+1 -2
View File
@@ -1,9 +1,8 @@
{ inputs, ... }: { ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;
homeModules = [ homeModules = [
inputs.cosmic-manager.homeManagerModules.cosmic-manager
./home/session.nix ./home/session.nix
./home/packages.nix ./home/packages.nix
./home/git.nix ./home/git.nix
+3 -8
View File
@@ -18,17 +18,15 @@
"nf" = "neofetch"; "nf" = "neofetch";
}; };
programs.bash = {
enable = true;
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
}; };
programs.starship = { programs.starship = {
enable = true; enable = true;
enableBashIntegration = true;
enableZshIntegration = true; enableZshIntegration = true;
settings = { settings = {
add_newline = false; add_newline = false;
@@ -41,13 +39,11 @@
programs.zoxide = { programs.zoxide = {
enable = true; enable = true;
enableBashIntegration = true;
enableZshIntegration = true; enableZshIntegration = true;
}; };
programs.eza = { programs.eza = {
enable = true; enable = true;
enableBashIntegration = true;
enableZshIntegration = true; enableZshIntegration = true;
git = true; git = true;
icons = "auto"; icons = "auto";
@@ -62,7 +58,6 @@
programs.direnv = { programs.direnv = {
enable = true; enable = true;
enableBashIntegration = true;
enableZshIntegration = true; enableZshIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
+10 -1
View File
@@ -1,6 +1,14 @@
{ config, ... }: { config, pkgs, ... }:
{ {
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
};
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
color-scheme = "prefer-dark"; color-scheme = "prefer-dark";
@@ -8,6 +16,7 @@
clock-show-weekday = true; clock-show-weekday = true;
clock-show-date = true; clock-show-date = true;
clock-format = "12h"; clock-format = "12h";
icon-theme = "Papirus-Dark";
}; };
"org/gnome/system/location" = { "org/gnome/system/location" = {
+3
View File
@@ -4,6 +4,9 @@
# Enable unfree globally # Enable unfree globally
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Enable zsh globally
programs.zsh.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
killall killall
usbutils usbutils
+2 -1
View File
@@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;
@@ -10,6 +10,7 @@ in
isNormalUser = true; isNormalUser = true;
description = settings.userDescription; description = settings.userDescription;
extraGroups = settings.userGroups; extraGroups = settings.userGroups;
shell = pkgs.zsh;
}; };
# Security # Security