Compare commits

..

10 commits

6 changed files with 207 additions and 37 deletions

View file

@ -1,5 +1,26 @@
{ {
"nodes": { "nodes": {
"base16": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1658847131,
"narHash": "sha256-X6Mml7cT0YR3WCD5fkUhpRVV5ZPcwdcDsND8r8xMqTE=",
"owner": "SenchoPens",
"repo": "base16.nix",
"rev": "6b404cda2e04ca3cf5ca7b877af9c469e1386acb",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "base16.nix",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -16,6 +37,22 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -35,6 +72,28 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
],
"utils": "utils"
},
"locked": {
"lastModified": 1680000368,
"narHash": "sha256-TlgC4IJ7aotynUdkGRtaAVxquaiddO38Ws89nB7VGY8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "765e4007b6f9f111469a25d1df6540e8e0ca73a6",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"lowdown-src": { "lowdown-src": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -150,12 +209,65 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1679793451,
"narHash": "sha256-JafTtgMDATE8dZOImBhWMA9RCn9AP8FVOpN+9K/tTlg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0cd51a933d91078775b300cf0f29aa3495231aa2",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nix": "nix", "nix": "nix",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3",
"stylix": "stylix"
}
},
"stylix": {
"inputs": {
"base16": "base16",
"flake-compat": "flake-compat_2",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1687088160,
"narHash": "sha256-llpm6lUqvEZI4cQq62eO6lD8V3VOt2h6ZHiEY6LXVZM=",
"owner": "danth",
"repo": "stylix",
"rev": "383d7306df0450603816852baf9b992a431bb82e",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "stylix",
"type": "github"
}
},
"utils": {
"locked": {
"lastModified": 1676283394,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
} }
} }
}, },

View file

@ -5,19 +5,21 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.url = "github:nix-community/home-manager/release-23.05";
stylix.url = "github:danth/stylix";
}; };
outputs = { self, nixpkgs, nix, nixos-hardware, home-manager }: { outputs = { self, nixpkgs, nix, nixos-hardware, home-manager, stylix, ... }: {
nixosConfigurations = { nixosConfigurations = {
hornt = nixpkgs.lib.nixosSystem { hornt = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
nixos-hardware.nixosModules.framework-12th-gen-intel nixos-hardware.nixosModules.framework-12th-gen-intel
./hosts/hornt.nix ./hosts/hornt.nix
./users/phoenix/user.nix ./users/phoenix/user.nix
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.chrism = import ./users/phoenix/hm.nix; home-manager.users.phoenix = import ./users/phoenix/hm.nix;
} }
]; ];
}; };

View file

@ -1,6 +1,15 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = [
./hornt-hardware.nix
];
system.stateVersion = "23.05";
nix.extraOptions = "
experimental-features = nix-command flakes
";
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

View file

@ -1,11 +1,11 @@
{ config, pkgs, home-manager, ... }: { config, pkgs, home-manager, ... }:
{ {
home-manager.users.phoenix = {pkgs, ...}: {
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "23.05"; home.stateVersion = "23.05";
home.packages = with pkgs; [ home.packages = with pkgs; [
sddm
# gnome
hyprland hyprland
git git
# default utils improvements # default utils improvements
@ -16,8 +16,39 @@
xcp # cp xcp # cp
ripgrep # grep ripgrep # grep
kitty kitty
plex-media-player
telegram-desktop
]; ];
/*
programs.gnome = { pkgs, ... }: {
enable = true;
config = {
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gedit # text editor
epiphany # web browser
geary # email reader
gnome-characters
yelp # Help view
gnome-contacts
gnome-initial-setup
]);
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [
gnome.gnome-tweaks
];
};
};
*/
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Jessica Canady"; userName = "Jessica Canady";
@ -27,6 +58,12 @@
defaultBranch = "main"; defaultBranch = "main";
}; };
}; };
aliases = {
ci = "commit";
co = "checkout";
st = "status";
l = "log";
};
}; };
programs.fish = { programs.fish = {
@ -37,5 +74,15 @@
}; };
programs.starship.enable = true; programs.starship.enable = true;
# stylin'
/*
stylix.image = pkgs.fetchurl {
url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg";
sha256 = "enQo3wqhgf0FEPHj2coOCvo7DuZv+x5rL/WIo4qPI50=";
}; };
stylix.polarity = "dark";
*/
} }

View file

@ -9,6 +9,6 @@
isNormalUser = true; isNormalUser = true;
description = "Jessica Canady"; description = "Jessica Canady";
extraGroups = [ "networkmanager" "wheel" "nixbld" "docker" "audio"]; extraGroups = [ "networkmanager" "wheel" "nixbld" "docker" "audio"];
initialPassword = 'password"; initialPassword = "password";
}; };
} }